﻿using Mes.Domain.BoundedContext.EntityBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mes.Domain.BoundedContext.Entities.Quality
{
    /// <summary>
    /// 未来样本
    /// Records future samples for freq_types 0 through 3
    /// </summary>
    public class SampleToGo : NoIdEntityBase
    {
        public int Ent_Id { get; set; }

        public string? Sample_Name { get; set; }

        public string? Wo_Id { get; set; }

        public string? Oper_Id { get; set; }

        public int? Seq_No { get; set; }

        public int? Context_Ent_Id { get; set; }

        public int? Item_Id { get; set; }

        public int? Item_Category_Id { get; set; }

        public string? Process_Id { get; set; }

        public string? Context_Oper_Id { get; set; }

        public int? Freq_Id { get; set; }

        public int? Plan_Id { get; set; }

        public DateTime Requested_Time_Utc { get; set; }

        public DateTime Requested_Time_Local { get; set; }

        public DateTime? Expiry_Time_Utc { get; set; }

        public DateTime? Expiry_Time_Local { get; set; }

        public DateTime? Warning_Time_Utc { get; set; }

        public DateTime? Warning_Time_Local { get; set; }

        public string? Sample_Name_Template { get; set; }

        public string? Sample_Name_Instance { get; set; }

        public int? Current_Sample_No { get; set; }

        public string? Spare1 { get; set; }

        public string? Spare2 { get; set; }

        public string? Spare3 { get; set; }

        public string? Spare4 { get; set; }

        public string? Last_Edit_Comment { get; set; }

        public string Last_Edit_By { get; set; } = string.Empty;

        public DateTime Last_Edit_At { get; set; } = DateTime.Now;

        public int Sample_Id { get; set; }
    }
}
